<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>性别选择</title>
    <script src="../../vue/vue.js"></script>
</head>
<body>
    <div id="app">
        <div>
            <label for=""><input type="radio" name="sex" v-model="sex" value="男"> 男</label>
            <label for=""><input type="radio" name="sex" v-model="sex" value="女"> 女</label>
          
        </div>
        <h1>你选择了：{{sex}}</h1>
    </div>
    
</body>
<script>
    new Vue({
        el:"#app",
        data(){
            return{
                sex:""
            }
        }
    })
</script>
</html>